﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="userbackstage_delete" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div style="text-align:center">
               <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="3" 
                Width="790px" onRowDataBound="GridView1_RowDataBound" OnPageIndexChanging="GridView1_PageIndexChanging" 
                 onRowDeleting="GridView1_RowDeleting" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellSpacing="1" GridLines="None" AllowPaging="True" PageSize="5" >
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="编号" ItemStyle-Width="70">
    <ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="type" HeaderText="类型" ItemStyle-Width="70">
    <ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="title" HeaderText="标题" ItemStyle-Width="70">
    <ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="info" HeaderText="内容" ItemStyle-Width="150">
    <ItemStyle Width="200px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="linkman" HeaderText="联系人" ItemStyle-Width="70">
    <ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="tel" HeaderText="电话" ItemStyle-Width="70">
    <ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="show" HeaderText="审核状态" ItemStyle-Width="70">
    <ItemStyle Width="70px"></ItemStyle>
                    </asp:BoundField>
                   <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" Text="删除" OnClientClick="return confirm('您确定要删除吗？');">删除</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>

                    <asp:BoundField DataField="release" HeaderText="发布者" />

                </Columns>
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                <PagerStyle ForeColor="Black" HorizontalAlign="Right" BackColor="#C6C3C6" />
                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#594B9C" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#33276A" />
            </asp:GridView>
        </div>
    </form>
</body>
</html>
